BaseKeyedCollection

Turns the inheriting class into a base keyed collection. The key is based on the singular class' clustered index. The requirements are taken care of when you include the keyeditem in the T class. If you plan on changing the singular class' clustered index, you must define dup() that returns a new instance of your class.

If T has foreign keys you must use $(SRCTAG KeyedCollection) instead since the functions that come with foreign keys need to have the other class imported.

This also allows you to make a keyed collection in one line.

alias Candies = BaseKeyedCollection!(Candy);
Now you can use Candies as a collection.

class BaseKeyedCollection (
T
) if (
usableForKeyedCollection!(T)
) {}

Members

Mixins

__anonymous
mixin KeyedCollection!(T)
Undocumented in source.

Parameters

T

the singular class

Meta